package com.cango.qutz.web.auth.org.dao.impl;

import com.cango.qutz.web.auth.org.dao.IOrgDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.cango.qutz.web.auth.org.dao.IOrgDao;
import com.cango.framework.base.dao.BaseDaoImpl;

/**
 * <p>ClassName: OrgDaoImpl</p>
 * <p>Description: 机构dao实现类</p>
 * <p>Author: weih</p>
 * <p>Date: 2015-04-01</p>
 */
@Repository("orgDao")
public class OrgDaoImpl extends BaseDaoImpl implements IOrgDao {

    /**
     * <p>Field sqlSession: 注入sqlSession</p>
     */
    @Autowired
    private SqlSessionTemplate sqlSession;

    @Override
    public int queryCountByCode(String sqlId, String orgCode) {
        return this.sqlSession.selectOne(sqlId, orgCode);
    }

}
